
#include "stdafx.h"

#ifdef NEED_IAFS

#include "xxx.DataObjects.h"

extern void TestOracleOcciClient();

// -----------------------------------------------------------------------------

void TestOracleOcciClient()
{
   Kif::Win32::Data::DataSourceInfo dataSource;

   //dataSource.SetSourceName(_T("//prsvr:1521/cafis"));
   //dataSource.SetUserId(_T("cafis"));
   //dataSource.SetPassword(_T("cafis11"));

   dataSource.SetSourceName(_T("//db:1521/db"));
   dataSource.SetUserId(_T("ESobrino"));
   dataSource.SetPassword(_T("oracle"));

   Cjis::Win32::Exchanges::Afis::DataObjects::SubmissionStatus ss(dataSource);
   if (ss.Connect())
   {
      Kif::Win32::String trans_no;
      trans_no.Copy(_T("DATA"));
      ss.GetStatus(trans_no);
      ss.GetStatus(trans_no);
      ss.Disconnect();
   }
}

#endif
